home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™ 1987-1994 / MacHack™ '88 / Other stuff / CLIP stuff / CLIP headers / CLIPdemo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1986-05-22  |  3.5 KB  |  86 lines  |  [TEXT/FstE]

  1. /*  Copyright © 1986 by the University of Michigan Medical Center.  All rights reserved
  2.  
  3. Filename:       clipdemo.h
  4.  
  5. Abstract:       This module contains declarations for the clipdemo and term source files
  6.  
  7. Environment:    UM/CLIP
  8.  
  9. Revision History:
  10.    Rev #       Date         Auth    Reason
  11.    -----    ----------      ----    ----------------------------------
  12.     0.0     22 may, 86      daf     original implementation
  13. =========================================================================================*/
  14.  
  15. #define     APAMIN      45          /* counterclockwise     */
  16. #define     APAMAX      45          /* clockwise            */
  17. #define     APBMIN      200         /* counterclockwise     */
  18. #define     APBMAX      120         /* clockwise            */
  19. #define     APDMIN      100         /* closest together     */
  20. #define     APDMAX      400         /* furthest apart       */
  21.  
  22. #define     LATAMIN     90          /* counterclockwise     */
  23. #define     LATAMAX     30          /* clockwise            */
  24. #define     LATBMIN     70          /* counterclockwise     */
  25. #define     LATBMAX     70          /* clockwise            */
  26. #define     LATDMIN     100         /* closest together     */
  27. #define     LATDMAX     400         /* furthest apart       */
  28.  
  29. #define     ISOCTOFS    700         /* iso-center to focal spot distance */    
  30.  
  31. void        ClipInit();
  32. void        TermInit();
  33. void        HndlMenus();
  34. void        ShowAboutBox();
  35. void        InitMicor();
  36. void        KillMicor();
  37. void        InitDigitron();
  38. void        KillDigitron();
  39. void        InitBICOR();
  40. void        KillBICOR();
  41. WindowPtr   MkBICORWindow();
  42. void        HndlCntrls();
  43. void        HndlDig();
  44. void        HndlBICOR();
  45. void        BICORValInit();
  46. DOUBLE      MagFact();
  47. void        drawAParcs();
  48. void        drawLATarcs();
  49. void        rotAlphAP();
  50. void        rotBetaAP();
  51. void        rotAlphLAT();
  52. void        rotBetaLAT();
  53.  
  54. ERRCODE     mkmxa();
  55. ERRCODE     mkmxl();
  56. ERRCODE     mkmxii();
  57. ERRCODE     mxmul();
  58. DOUBLE      sin ();                     /* sine function */
  59. DOUBLE      cos ();                     /* cosine function */
  60.  
  61. EventRecord         Event;              /* event record structure instance  */
  62. EventStuff          whatHappened;       /* event detail structure instance  */
  63. Rect                myRect,apRect,latRect;          /* rectangle instances  */
  64. WindowRecord        mWind,dWind,BICORWind; 
  65. WindowPtr           mWindPtr,dWindPtr,BWindPtr;
  66. Cursor              iBeam,cross,plus,watch;     /* standard cursor handles  */
  67. MenuHandle          appleMenu,fileMenu,editMenu;    /* standard menu handles*/
  68. MenuHandle          toolMenu;               /* CLIP specific menu handles   */
  69. MenuHandle          baudMenu,portMenu;      /* communications menu handles  */
  70. static char         **updateRgn;
  71. int                 x, y;
  72. long                count;
  73. Boolean             micor,digitron,Bicor,latArm,hostmode;
  74. INT                 alphaAP,betaAP,distAP,alphaLAT,betaLAT,distLAT;
  75. ControlHandle       apcntrls[10],latcntrls[10];
  76. DOUBLE              aptopat[9],pattoap[9],lattopat[9],pattolat[9],aptolat[9],lattoap[9];
  77. ControlHandle       digcoords[12];
  78. DOUBLE              ptvect0[3],fsvect0[3],ptvectt[3],fsvectt[3];/* image coordinate system values */
  79. DOUBLE              mf;
  80.  
  81. struct port {                           /* communications port settings info */
  82.               int             refin, refout;
  83.               unsigned short  baud, parity, stopbits, databits;
  84.               char            *out, *in;
  85.             } PortA, PortB, *Port;      /* two instances and a pointer       */
  86.